import { _post } from '../http'

export default {
  // 收款管理列表
  async getSettlementList(data) {
    return await _post({
      url: 'settlementList',
      params: data || {},
      loading: false
    })
  },

  // 收款详情
  async getChargeDetail(data) {
    return await _post({
      url: 'chargeDetail',
      params: data || {},
      loading: false
    })
  },

  // 获取收款详情的计费单列表
  async getChargeList(data) {
    return await _post({
      url: 'chargingList',
      params: data || {},
      loading: false
    })
  },

  // 计费单财务状态确认
  async confirmPayStatus(data) {
    return await _post({
      url: 'confirmChargeStatus',
      params: data || {},
      loading: false
    })
  },

  // 作废计费单
  async cancelChargingOrder(data) {
    return await _post({
      url: 'cancelChargeStatus',
      params: data || {},
      loading: false
    })
  },
  // 预收款变更列表
  async getAdvanceList(data) {
    return await _post({
      url: 'getAdvanceList',
      params: data || {},
      loading: false
    })
  },
  // 预收款变更-审批详情
  async getAdvanceDetail(data) {
    return await _post({
      url: 'getAdvanceDetail',
      params: data || {},
      loading: false
    })
  },
  //预收款变更-计费单详情
  async getChargingOrderDetail(data) {
    return await _post({
      url: 'getChargingOrderDetail',
      params: data || {},
      loading: false
    })
  },
  //预收款变更-订单详情
  async getOrderDetails(data) {
    return await _post({
      url: 'getOrderDetails',
      params: data || {},
      loading: false
    })
  },
  //预收款变更-更改审批状态
  async getApproval(data) {
    return await _post({
      url: 'getApproval',
      params: data || {},
      loading: false
    })
  },

  // 退费管理 start
  // 退费-订单详情
  async getRefundList(data) {
    return await _post({
      url: 'getRefundList',
      params: data || {},
      loading: false
    })
  },

  // 退费-订单详情
  async refundDetail(data) {
    return await _post({
      url: 'refundDetail',
      params: data || {},
      loading: false
    })
  },

  // 退费-审批详情
  async applyDetail(data) {
    return await _post({
      url: 'getApplyDetail',
      params: data || {},
      loading: false
    })
  },

  // 退费-扣款信息-交易信息
  async getRefundMsgList(data) {
    return await _post({
      url: 'getRefundMsgList',
      params: data || {},
      loading: false
    })
  },

  // 退费-转项目-退款-列表
  async geApplyList(data) {
    return await _post({
      url: 'geApplyList',
      params: data || {},
      loading: false
    })
  },

  // 退费-相关订单
  async getRelevantOrder(data) {
    return await _post({
      url: 'getRelevantOrder',
      params: data || {},
      loading: false
    })
  },

  // 确认退费
  async confirmPayStatus(data) {
    return await _post({
      url: 'confirmPayStatus',
      params: data || {},
      loading: false
    })
  },

  // 员工钉钉所在部门列表下拉数据
  getStaffDepartment: async (data) => {
    return await _post({
      url: 'getStaffDepartment',
      params: data || {},
      loading: false
    })
  },

  // 转项目，退费图片getFile
  getFile: async (data) => {
    return await _post({
      url: 'getFile',
      params: data || {},
      loading: false
    })
  },

  // 退费-合同信息
  getContractDetail: async (data) => {
    return await _post({
      url: 'getContractDetail',
      params: data || {},
      loading: false
    })
  },

  // 获取产品详情-匹配学校
  getProductDetail: async (data) => {
    return await _post({
      url: 'getProductDetail',
      params: data || {},
      loading: false
    })
  }

  // 退费管理 end
}
